package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
import ystp.model.Fujianot;
import ystp.model.FujianotExample;
import ystp.model.FujianotKey;

public interface FujianotMapper {

    List<Map<String, Object>> findPinguiAll(@Param("xiangmuid") String ppxiangmuId, @Param("drugname") String ppDrugname,
                                            @Param("startindex") int ppStartIndex,
                                            @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findShengchanqiyeByPinguiResult(@Param("xiangmuid") String ppxiangmuId,
                                                              @Param("xuhao")String ppPinguiOne,@Param("userid")String ppuserId);

    Object getPinguiCount(@Param("xiangmuid") String ppxiangmuId,
                          @Param("startindex") int ppStartIndex,
                          @Param("pagesize") int ppPageSize);

    Object countPass(@Param("xiangmuid")String ppXiangmuId,@Param("userid")String ppUserId);

    int countByExample(FujianotExample example);

    int deleteByExample(FujianotExample example);

    int deleteByPrimaryKey(FujianotKey key);

    int insert(Fujianot record);
    int insertBatch(List<Fujianot> list);
    ;

    int insertSelective(Fujianot record);

    List<Fujianot> selectByExample(FujianotExample example);

    Fujianot selectByPrimaryKey(FujianotKey key);

    int updateByExampleSelective(@Param("record") Fujianot record, @Param("example") FujianotExample example);

    int updateByExample(@Param("record") Fujianot record, @Param("example") FujianotExample example);

    int updateByPrimaryKeySelective(Fujianot record);

    int updateByPrimaryKey(Fujianot record);

    List<Map<String, Object>> selectPingui(@Param("xiangmuid") String xiangmuid,@Param("startindex") int ppStartIndex,
                                           @Param("pagesize") int ppPageSize);

    Integer countPingui(@Param("xiangmuid") String ppxiangmuId);

    Integer countNumber(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String, Object>> findShengchanqiyeByPingui(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);

    List<Map<String, Object>> findqianzibiaoResult(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);
}